package com.ruoyi.life.mapper;

import java.util.List;
import com.ruoyi.life.domain.FeApartmentCancel;
import com.ruoyi.life.domain.FeApartmentCancelDetail;

/**
 * 公寓退租记录Mapper接口
 * 
 * @author cjie
 * @date 2022-09-20
 */
public interface FeApartmentCancelMapper {
    /**
     * 查询公寓退租记录
     * 
     * @param id 公寓退租记录ID
     * @return 公寓退租记录
     */
     FeApartmentCancel selectFeApartmentCancelById(String id);

    /**
     * 查询公寓退租记录列表
     * 
     * @param feApartmentCancel 公寓退租记录
     * @return 公寓退租记录集合
     */
     List<FeApartmentCancel> selectFeApartmentCancelList(FeApartmentCancel feApartmentCancel);

    /**
     * 新增公寓退租记录
     * 
     * @param feApartmentCancel 公寓退租记录
     * @return 结果
     */
     int insertFeApartmentCancel(FeApartmentCancel feApartmentCancel);

    /**
     * 修改公寓退租记录
     * 
     * @param feApartmentCancel 公寓退租记录
     * @return 结果
     */
     int updateFeApartmentCancel(FeApartmentCancel feApartmentCancel);

    /**
     * 删除公寓退租记录
     * 
     * @param id 公寓退租记录ID
     * @return 结果
     */
     int deleteFeApartmentCancelById(String id);

    /**
     * 批量删除公寓退租记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteFeApartmentCancelByIds(String[] ids);

    /**
     * 批量删除公寓退租详情
     * 
     * @param customerIds 需要删除的数据ID
     * @return 结果
     */
     int deleteFeApartmentCancelDetailByCancelIds(String[] ids);
    
    /**
     * 批量新增公寓退租详情
     * 
     * @param feApartmentCancelDetailList 公寓退租详情列表
     * @return 结果
     */
     int batchFeApartmentCancelDetail(List<FeApartmentCancelDetail> feApartmentCancelDetailList);
    

    /**
     * 通过公寓退租记录ID删除公寓退租详情信息
     * 
     * @param id 公寓退租详情ID
     * @return 结果
     */
     int deleteFeApartmentCancelDetailByCancelId(String id);
}
